package com.ruoyi.personnel.service.impl;

import com.ruoyi.personnel.domain.Transfer;
import com.ruoyi.personnel.mapper.TransferMapper;
import com.ruoyi.personnel.service.TransferService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class TransferServiceImpl implements TransferService {

    @Autowired
    private TransferMapper transferMapper;

    @Override
    public Transfer getTransferByUId(Integer userId) {
        return transferMapper.selectTransferByUId(userId);
    }

    @Override
    public int updateTransfer(Transfer transfer) {
        return transferMapper.updateTransfer(transfer);
    }

    @Override
    public Transfer selectTransferByPhone(String userPhone) {
        return transferMapper.selectTransferByPhone(userPhone);
    }

    @Override
    public int insertTransfer(Transfer transfer) {
        return transferMapper.insertTransfer(transfer);
    }
}
